home *** CD-ROM | disk | FTP | other *** search
/ Amiga Games Extra 1996 September / Amiga Games Extra CD-ROM 9-1996.iso / userbox / publicdomain / aplayer / hdinstall < prev    next >
Text File  |  1996-07-02  |  50KB  |  1,549 lines

  1. ;**************************************************************************
  2. ;*                                                                        *
  3. ;*                 Installer Script For Accessible Player                 *
  4. ;*                                                                        *
  5. ;*                            Update 05/07-1996                           *
  6. ;*                                                                        *
  7. ;**************************************************************************
  8.  
  9. ;--------------------------------------------------------------------------
  10. ; Procedures
  11.  
  12. (procedure InstallLib
  13.     (working ("Testing %s" libname))
  14.     (copylib
  15.         (prompt ("Do you want to install the \"%s\"?" libname))
  16.         (help @copylib-help)
  17.         (source (tackon tempdir libname))
  18.         (dest libdest)
  19.         (confirm)
  20.     )
  21. )
  22.  
  23. (procedure DeleteAll
  24.     (if (exists deldir)
  25.         (foreach deldir "#?"
  26.             (delete (tackon deldir @each-name)
  27.                 (optional force)
  28.             )
  29.         )
  30.     )
  31. )
  32.  
  33. ;--------------------------------------------------------------------------
  34. ; ** Install Procedure
  35.  
  36. (procedure Install
  37.     (message "This version of APlayer is shareware. "
  38.              "Without registration you will miss some of APlayer "
  39.              "features. On how to register, read the guide.\n\n"
  40.              "If you still want to install press proceed else abort."
  41.     )
  42.  
  43.     (message "You are now about to install the APlayer program. "
  44.              "You will first be asked for all the different files "
  45.              "you can install and then this script will begin to "
  46.              "install the files."
  47.     )
  48.  
  49.     (set default-dest
  50.         (askdir
  51.             (prompt "Where do you want to install APlayer? A drawer called "
  52.                     "APlayer will be created.")
  53.             (help @askdir-help)
  54.             (default @default-dest)
  55.         )
  56.     )
  57.     (set @default-dest default-dest)
  58.  
  59.  
  60.     (set fileflag
  61.         (askoptions
  62.             (prompt "Which files do you want to install in the "
  63.                     "\"APlayer\" drawer?")
  64.             (help @askoptions-help)
  65.             (choices
  66.                 "APlayer"
  67.                 "Commercial Picture"
  68.             )
  69.         )
  70.     )
  71.  
  72.     (set big
  73.         (askbool
  74.             (prompt "Do you want to install all players, noteplayers and "
  75.                     "agents? If you select yes, a default player config "
  76.                     "file will be installed, except if you already have "
  77.                     "a config file installed. Note that all agents will "
  78.                     "be active, so if you don't want them to be active, "
  79.                     "you have to disable them by yourself after the "
  80.                     "installation.")
  81.             (help @askbool-help)
  82.             (choices "Yes" "No")
  83.         )
  84.     )
  85.  
  86.     (if big
  87.         (
  88.             (set play 1)
  89.             (set playflag1 -1)
  90.             (set playflag2 -1)
  91.             (set playflag3 -1)
  92.             (set playflag4 -1)
  93.             (set playflag5 -1)
  94.             (set playflag6 -1)
  95.             (set playflag7 -1)
  96.  
  97.             (set noteplay 1)
  98.             (set noteplayflag1 -1)
  99.  
  100.             (set agentflag 1)
  101.             (set agentflag1 -1)
  102.             (set multiflag1 -1)
  103.         )
  104.         (                               ; else statement
  105.             (set play
  106.                 (askbool
  107.                     (prompt "Do you want to install external players?")
  108.                     (help "If you select yes, you can select between all the "
  109.                           "external players this version support. All the players "
  110.                           "will be stored in your \"LIBS:APlayer\" drawer.")
  111.                 )
  112.             )
  113.  
  114.             (set playflag1 0)
  115.             (set playflag2 0)
  116.             (set playflag3 0)
  117.             (set playflag4 0)
  118.             (set playflag5 0)
  119.             (set playflag6 0)
  120.             (set playflag7 0)
  121.             (if play
  122.                 (
  123.                     (set playflag1
  124.                         (askoptions
  125.                             (prompt "Which external players do you want to install in "
  126.                                     "your \"LIBS:APlayer\" drawer?")
  127.                             (help @askoptions-help)
  128.                             (choices
  129.                                 "Activision Pro"
  130.                                 "Art of Noise"
  131.                                 "DeliCustom"
  132.                                 "Delta 1.0"
  133.                                 "Delta 2.0"
  134.                                 "Digi Booster"
  135.                                 "Digital Mugician"
  136.                                 "DSS"
  137.                             )
  138.                         )
  139.                     )
  140.  
  141.                     (set playflag2
  142.                         (askoptions
  143.                             (prompt "Which external players do you want to install in "
  144.                                     "your \"LIBS:APlayer\" drawer?")
  145.                             (help @askoptions-help)
  146.                             (choices
  147.                                 "FastTracker"
  148.                                 "FastTracker 2.0"
  149.                                 "Fred"
  150.                                 "Future Composer 1.0-1.3"
  151.                                 "Future Composer 1.4"
  152.                                 "Hippel"
  153.                                 "IFF-8SVX"
  154.                                 "IFF-AIFF"
  155.                             )
  156.                         )
  157.                     )
  158.  
  159.                     (set playflag3
  160.                         (askoptions
  161.                             (prompt "Which external players do you want to install in "
  162.                                     "your \"LIBS:APlayer\" drawer?")
  163.                             (help @askoptions-help)
  164.                             (choices
  165.                                 "IFF-SMUS"
  166.                                 "In Stereo 2.0"
  167.                                 "JamCracker"
  168.                                 "J.C. Brooke"
  169.                                 "Maniacs of Noise"
  170.                                 "Mark Cooksey"
  171.                                 "Mark II"
  172.                                 "MED"
  173.                             )
  174.                         )
  175.                     )
  176.  
  177.                     (set playflag4
  178.                         (askoptions
  179.                             (prompt "Which external players do you want to install in "
  180.                                     "your \"LIBS:APlayer\" drawer?")
  181.                             (help @askoptions-help)
  182.                             (choices
  183.                                 "MultiTracker"
  184.                                 "Music Assembler"
  185.                                 "Noise Packer 2.0"
  186.                                 "Noise Packer 3.0"
  187.                                 "OctaMed"
  188.                                 "Oktalyzer"
  189.                                 "Puma Tracker"
  190.                                 "Quadra Composer"
  191.                             )
  192.                         )
  193.                     )
  194.  
  195.                     (set playflag5
  196.                         (askoptions
  197.                             (prompt "Which external players do you want to install in "
  198.                                     "your \"LIBS:APlayer\" drawer?")
  199.                             (help @askoptions-help)
  200.                             (choices
  201.                                 "RIFF-WAVE"
  202.                                 "Ron Klaren"
  203.                                 "ScreamTracker 3.0"
  204.                                 "SID"
  205.                                 "SidMon 1.0"
  206.                                 "SidMon 2.0"
  207.                                 "Sound Factory"
  208.                                 "Sound FX 1.3"
  209.                             )
  210.                         )
  211.                     )
  212.  
  213.                     (set playflag6
  214.                         (askoptions
  215.                             (prompt "Which external players do you want to install in "
  216.                                     "your \"LIBS:APlayer\" drawer?")
  217.                             (help @askoptions-help)
  218.                             (choices
  219.                                 "Sound FX 2.0"
  220.                                 "Sound Monitor 2.0"
  221.                                 "StarTrekker 4"
  222.                                 "StarTrekker 4AM"
  223.                                 "Syntracker"
  224.                                 "TakeTracker"
  225.                                 "TFMX 1.5"
  226.                                 "THX Sound System (68020+)"
  227.                             )
  228.                         )
  229.                     )
  230.  
  231.                     (set playflag7
  232.                         (askoptions
  233.                             (prompt "Which external players do you want to install in "
  234.                                     "your \"LIBS:APlayer\" drawer?")
  235.                             (help @askoptions-help)
  236.                             (choices
  237.                                 "Tronic Tracker"
  238.                                 "Whittaker"
  239.                             )
  240.                         )
  241.                     )
  242.                 )
  243.             )
  244.  
  245.  
  246.             (set noteplay
  247.                 (askbool
  248.                     (prompt "Do you want to install external NotePlayers?")
  249.                     (help "If you select yes, you can select between all the "
  250.                           "external NotePlayers this version support. All the "
  251.                           "NotePlayers will be stored in your \"LIBS:APlayer/NotePlayers\" drawer.")
  252.                 )
  253.             )
  254.  
  255.             (set noteplayflag1 0)
  256.             (if noteplay
  257.                 (
  258.                     (set noteplayflag1
  259.                         (askoptions
  260.                             (prompt "Which external NotePlayers do you want to install in "
  261.                                     "your \"LIBS:APlayer/NotePlayers\" drawer?")
  262.                             (help @askoptions-help)
  263.                             (choices
  264.                                 "14 Bit Stereo - 2 Voices"
  265.                                 "14 Bit Stereo - 32 Voices"
  266.                                 "FastMem - 4 Voices"
  267.                                 "Mono - 32 Voices"
  268.                                 "Real Surround - 32 Voices"
  269.                                 "Stereo - 32 Voices"
  270.                                 "Surround - 32 Voices"
  271.                             )
  272.                         )
  273.                     )
  274.                 )
  275.             )
  276.  
  277.  
  278.             (set agent
  279.                 (askbool
  280.                     (prompt "Do you want to install external Agents?")
  281.                     (help "If you select yes, you can select between all the "
  282.                           "external Agents this version support. All the "
  283.                           "Agents will be stored in your \"LIBS:APlayer/Agents\" drawer.")
  284.                 )
  285.             )
  286.  
  287.             (set agentflag1 0)
  288.             (if agent
  289.                 (
  290.                     (set agentflag1
  291.                         (askoptions
  292.                             (prompt "Which external Agents do you want to install in "
  293.                                     "your \"LIBS:APlayer/Agents\" drawer?")
  294.                             (help @askoptions-help)
  295.                             (choices
  296.                                 "Favourite Song System"
  297.                                 "Multi - Sample Saver"
  298.                                 "Bar - Scope"
  299.                                 "FreqAnalyzer - Scope"
  300.                                 "RGBBox - Scope"
  301.                                 "SpinSquare - Scope"
  302.                             )
  303.                         )
  304.                     )
  305.  
  306.                     (set multiflag1 0)
  307.                     (if (in agentflag1 1)
  308.                         (
  309.                             (set multiflag1
  310.                                 (askoptions
  311.                                     (prompt "You have selected the Multi-SampleSaver agent. "
  312.                                             "Which sample modules do you want to install?")
  313.                                     (help @askoptions-help)
  314.                                     (choices
  315.                                         "IFF-8SVX"
  316.                                         "IFF-AIFF"
  317.                                         "Raw"
  318.                                         "RIFF-WAVE"
  319.                                         "Worms"
  320.                                     )
  321.                                 )
  322.                             )
  323.                         )
  324.                     )
  325.                 )
  326.             )
  327.         )
  328.     )
  329.  
  330.  
  331.     (set libs
  332.         (askoptions
  333.             (prompt "Which other libraries do you want to install in your "
  334.                     "\"LIBS:\" drawer?  Press help for more info.")
  335.             (help "This is some libraries the APlayer uses or can use. "
  336.                   "Here follow a little description of the different "
  337.                   "libraries:\n\n"
  338.                   "PlaySID.library: This library are used in the SID "
  339.                   "player. That means, if you want to hear some C64 SID "
  340.                   "tunes, you have to install this library.\n\n"
  341.                   "Reqtools.library: This library is required by APlayer. "
  342.                   "With this library APlayer shows filerequesters etc.\n\n"
  343.                   "Rexxtools.library: If you want ARexx in APlayer, you "
  344.                   "have to install this library. It helps APlayer to make "
  345.                   "the ARexx interface.\n\n"
  346.                   "Xpkmaster.library: APlayer can also use this library to "
  347.                   "decrunch both powerpacked and xpk packed modules.\n\n"
  348.                   "Unpack.library: This library can decrunch a lot of "
  349.                   "different types of crunched modules. See the unpack.doc "
  350.                   "for more information.")
  351.             (choices
  352.                 "PlaySID.library"
  353.                 "Reqtools.library"
  354.                 "Rexxtools.library"
  355.                 "Xpkmaster.library"
  356.                 "Unpack.library"
  357.             )
  358.         )
  359.     )
  360.  
  361.  
  362.     (set cpu (database "cpu"))
  363.     (if (< cpu 68020)
  364.         (set marked 3)
  365.         (set marked 5)
  366.     )
  367.  
  368.     (set xpk
  369.         (askoptions
  370.             (prompt "Which xpk libraries do you want to install in your "
  371.                     "\"LIBS:compressors\" drawer?")
  372.             (help @askoptions-help)
  373.             (choices
  374.                 "xpkSMPL.library"
  375.                 "xpkSQSH.library (68000)"
  376.                 "XpkSQSH.library (68020)"
  377.             (default marked)
  378.             )
  379.         )
  380.     )
  381.  
  382.  
  383.     (set arexx
  384.         (askbool
  385.             (prompt "Do you want to install ARexx?")
  386.             (help @askbool-help)
  387.         )
  388.     )
  389.  
  390.  
  391.     (set doc
  392.         (askbool
  393.             (prompt "Do you want to install docs?")
  394.             (help "If you select yes, you can select between all the "
  395.                   "different docs. All the docs will be install in the "
  396.                   "\"APlayer/Docs\" drawer.")
  397.         )
  398.     )
  399.  
  400.     (set docflag 0)
  401.     (if doc
  402.         (set docflag
  403.             (askoptions
  404.                 (prompt "Which files do you want to install in the "
  405.                         "\"APlayer/Docs\" drawer?")
  406.                 (help @askoptions-help)
  407.                 (choices
  408.                     "APlayer.guide"
  409.                     "MissingModules.txt"
  410.                     "PlaySid.doc"
  411.                     "SMPL.doc"
  412.                     "SQSH.doc"
  413.                     "Unpack.guide"
  414.                     "RegistrationForm"
  415.                     "Installer Script"
  416.                 )
  417.             )
  418.         )
  419.     )
  420.  
  421.  
  422. ;    (set developer
  423. ;        (askbool
  424. ;            (prompt "Do you want to install the developer set?")
  425. ;            (help @askbool-help)
  426. ;        )
  427. ;    )
  428.  
  429. ; ** Begin to copy the files
  430.  
  431.     (set @default-dest (tackon @default-dest "APlayer"))
  432.     (set lhex (tackon sdir "C/lhex"))
  433.     (set tempdir "T:apTemp")
  434.     (set deldir tempdir)
  435.  
  436.     (makedir tempdir)
  437.     (makedir @default-dest)
  438.  
  439.     (if (not (exists (tackon @default-dest "/APlayer.info")))
  440.         (copyfiles                             ;Copy Icon To APlayer Directory
  441.             (source (tackon sdir "/APlayer.info"))
  442.             (dest (tackon @default-dest "/"))
  443.         )
  444.     )
  445.  
  446.     (set oldversion 0)
  447.     (if (exists (tackon @default-dest "APlayer"))
  448.         (
  449.             (set ver (getversion (tackon @default-dest "APlayer")))
  450.             (set oldversion (/ ver 65536))
  451.         )
  452.     )
  453.  
  454.     (if fileflag
  455.         (
  456.             (working "Unpacking program archive....")
  457.             (run ("\"%s\" -fqw=%s x Files/Program.lha >NIL:" lhex tempdir))
  458.  
  459.             (if (in fileflag 0)                     ;APlayer File
  460.                 (
  461.                     (set datadir (tackon @default-dest "Data"))
  462.                     (makedir datadir)
  463.                     (copyfiles
  464.                         (source (tackon tempdir "APlayer"))
  465.                         (dest @default-dest)
  466.                         (infos)
  467.                     )
  468.  
  469.                     (copyfiles
  470.                         (source (tackon tempdir "Data/Help.Nodes"))
  471.                         (dest (tackon @default-dest "Data/"))
  472.                     )
  473.  
  474.                     (copyfiles
  475.                         (source (tackon tempdir "Data/Tips.dat"))
  476.                         (dest (tackon @default-dest "Data/"))
  477.                     )
  478.  
  479.                     (copyfiles
  480.                         (source (tackon tempdir "Data/Why.dat"))
  481.                         (dest (tackon @default-dest "Data/"))
  482.                     )
  483.                 )
  484.             )
  485.  
  486.             (if (in fileflag 1)                     ;Commercial Picture
  487.                 (
  488.                     (copyfiles
  489.                         (source (tackon sdir "ShowMe.jpg"))
  490.                         (dest @default-dest)
  491.                         (infos)
  492.                     )
  493.                 )
  494.             )
  495.  
  496.             (set deldir (tackon tempdir "Data"))
  497.             (DeleteAll)
  498.             (set deldir tempdir)
  499.             (DeleteAll)
  500.         )
  501.     )
  502.     (complete 10)
  503.  
  504.  
  505.     (if (or (or (or (or (or (or playflag1 playflag2) playflag3) playflag4) playflag5) playflag6) playflag7)
  506.         (
  507.             (makedir "LIBS:APlayer")
  508.             (working "Unpacking player archive....")
  509.             (run ("\"%s\" -fqw=%s x Files/Players.lha >NIL:" lhex tempdir))
  510.             (set libdest "LIBS:APlayer/")
  511.             (delete "LIBS:APlayer/apHolyNoise.library")
  512.  
  513.             (if playflag1
  514.                 (
  515.                     (if (in playflag1 0)
  516.                         (
  517.                             (set libname "apActivisionPro.library")
  518.                             (InstallLib)
  519.                         )
  520.                     )
  521.  
  522.                     (if (in playflag1 1)
  523.                         (
  524.                             (set libname "apArtOfNoise.library")
  525.                             (InstallLib)
  526.                         )
  527.                     )
  528.  
  529.                     (if (in playflag1 2)
  530.                         (
  531.                             (set libname "apDeliCustom.library")
  532.                             (InstallLib)
  533.                         )
  534.                     )
  535.  
  536.                     (if (in playflag1 3)
  537.                         (
  538.                             (set libname "apDelta10.library")
  539.                             (InstallLib)
  540.                         )
  541.                     )
  542.  
  543.                     (if (in playflag1 4)
  544.                         (
  545.                             (set libname "apDelta20.library")
  546.                             (InstallLib)
  547.                         )
  548.                     )
  549.  
  550.                     (if (in playflag1 5)
  551.                         (
  552.                             (set libname "apDigiBooster.library")
  553.                             (InstallLib)
  554.                         )
  555.                     )
  556.  
  557.                     (if (in playflag1 6)
  558.                         (
  559.                             (set libname "apDigitalMugician.library")
  560.                             (InstallLib)
  561.                         )
  562.                     )
  563.  
  564.                     (if (in playflag1 7)
  565.                         (
  566.                             (set libname "apDSS.library")
  567.                             (InstallLib)
  568.                         )
  569.                     )
  570.                 )
  571.             )
  572.             (complete 11)
  573.  
  574.             (if playflag2
  575.                 (
  576.                     (if (in playflag2 0)
  577.                         (
  578.                             (set libname "apFastTracker.library")
  579.                             (InstallLib)
  580.                         )
  581.                     )
  582.  
  583.                     (if (in playflag2 1)
  584.                         (
  585.                             (set libname "apFastTracker20.library")
  586.                             (InstallLib)
  587.                         )
  588.                     )
  589.  
  590.                     (if (in playflag2 2)
  591.                         (
  592.                             (set libname "apFred.library")
  593.                             (InstallLib)
  594.                         )
  595.                     )
  596.  
  597.                     (if (in playflag2 3)
  598.                         (
  599.                             (set libname "apFuture13.library")
  600.                             (InstallLib)
  601.                         )
  602.                     )
  603.  
  604.                     (if (in playflag2 4)
  605.                         (
  606.                             (set libname "apFuture14.library")
  607.                             (InstallLib)
  608.                         )
  609.                     )
  610.  
  611.                     (if (in playflag2 5)
  612.                         (
  613.                             (set libname "apHippel.library")
  614.                             (InstallLib)
  615.                         )
  616.                     )
  617.  
  618.                     (if (in playflag2 6)
  619.                         (
  620.                             (set libname "apIFF-8SVX.library")
  621.                             (InstallLib)
  622.                         )
  623.                     )
  624.  
  625.                     (if (in playflag2 7)
  626.                         (
  627.                             (set libname "apIFF-AIFF.library")
  628.                             (InstallLib)
  629.                         )
  630.                     )
  631.                 )
  632.             )
  633.             (complete 13)
  634.  
  635.             (if playflag3
  636.                 (
  637.                     (if (in playflag3 0)
  638.                         (
  639.                             (set libname "apIFF-SMUS.library")
  640.                             (InstallLib)
  641.                         )
  642.                     )
  643.  
  644.                     (if (in playflag3 1)
  645.                         (
  646.                             (set libname "apInStereo20.library")
  647.                             (InstallLib)
  648.                         )
  649.                     )
  650.  
  651.                     (if (in playflag3 2)
  652.                         (
  653.                             (set libname "apJamCracker.library")
  654.                             (InstallLib)
  655.                         )
  656.                     )
  657.  
  658.                     (if (in playflag3 3)
  659.                         (
  660.                             (set libname "apJCBrooke.library")
  661.                             (InstallLib)
  662.                         )
  663.                     )
  664.  
  665.                     (if (in playflag3 4)
  666.                         (
  667.                             (set libname "apMON.library")
  668.                             (InstallLib)
  669.                         )
  670.                     )
  671.  
  672.                     (if (in playflag3 5)
  673.                         (
  674.                             (set libname "apMarkCooksey.library")
  675.                             (InstallLib)
  676.                         )
  677.                     )
  678.  
  679.                     (if (in playflag3 6)
  680.                         (
  681.                             (set libname "apMarkII.library")
  682.                             (InstallLib)
  683.                         )
  684.                     )
  685.  
  686.                     (if (in playflag3 7)
  687.                         (
  688.                             (set libname "apMED.library")
  689.                             (InstallLib)
  690.                         )
  691.                     )
  692.                 )
  693.             )
  694.             (complete 14)
  695.  
  696.             (if playflag4
  697.                 (
  698.                     (if (in playflag4 0)
  699.                         (
  700.                             (set libname "apMultiTracker.library")
  701.                             (InstallLib)
  702.                         )
  703.                     )
  704.  
  705.                     (if (in playflag4 1)
  706.                         (
  707.                             (set libname "apMusicAss.library")
  708.                             (InstallLib)
  709.                         )
  710.                     )
  711.  
  712.                     (if (in playflag4 2)
  713.                         (
  714.                             (set libname "apNoisePacker20.library")
  715.                             (InstallLib)
  716.                         )
  717.                     )
  718.  
  719.                     (if (in playflag4 3)
  720.                         (
  721.                             (set libname "apNoisePacker30.library")
  722.                             (InstallLib)
  723.                         )
  724.                     )
  725.  
  726.                     (if (in playflag4 4)
  727.                         (
  728.                             (set libname "apOctaMed.library")
  729.                             (InstallLib)
  730.                         )
  731.                     )
  732.  
  733.                     (if (in playflag4 5)
  734.                         (
  735.                             (set libname "apOktalyzer.library")
  736.                             (InstallLib)
  737.                         )
  738.                     )
  739.  
  740.                     (if (in playflag4 6)
  741.                         (
  742.                             (set libname "apPumaTracker.library")
  743.                             (InstallLib)
  744.                         )
  745.                     )
  746.  
  747.                     (if (in playflag4 7)
  748.                         (
  749.                             (set libname "apQuadraComposer.library")
  750.                             (InstallLib)
  751.                         )
  752.                     )
  753.                 )
  754.             )
  755.             (complete 16)
  756.  
  757.             (if playflag5
  758.                 (
  759.                     (if (in playflag5 0)
  760.                         (
  761.                             (set libname "apRIFF-WAVE.library")
  762.                             (InstallLib)
  763.                         )
  764.                     )
  765.  
  766.                     (if (in playflag5 1)
  767.                         (
  768.                             (set libname "apRonKlaren.library")
  769.                             (InstallLib)
  770.                         )
  771.                     )
  772.  
  773.                     (if (in playflag5 2)
  774.                         (
  775.                             (set libname "apScreamTracker30.library")
  776.                             (InstallLib)
  777.                         )
  778.                     )
  779.  
  780.                     (if (in playflag5 3)
  781.                         (
  782.                             (set libname "apSID.library")
  783.                             (InstallLib)
  784.                         )
  785.                     )
  786.  
  787.                     (if (in playflag5 4)
  788.                         (
  789.                             (set libname "apSidMon10.library")
  790.                             (InstallLib)
  791.                         )
  792.                     )
  793.  
  794.                     (if (in playflag5 5)
  795.                         (
  796.                             (set libname "apSidMon20.library")
  797.                             (InstallLib)
  798.                         )
  799.                     )
  800.  
  801.                     (if (in playflag5 6)
  802.                         (
  803.                             (set libname "apSoundFactory.library")
  804.                             (InstallLib)
  805.                         )
  806.                     )
  807.  
  808.                     (if (in playflag5 7)
  809.                         (
  810.                             (set libname "apSoundFX13.library")
  811.                             (InstallLib)
  812.                         )
  813.                     )
  814.                 )
  815.             )
  816.             (complete 17)
  817.  
  818.             (if playflag6
  819.                 (
  820.                     (if (in playflag6 0)
  821.                         (
  822.                             (set libname "apSoundFX20.library")
  823.                             (InstallLib)
  824.                         )
  825.                     )
  826.  
  827.                     (if (in playflag6 1)
  828.                         (
  829.                             (set libname "apSoundMon20.library")
  830.                             (InstallLib)
  831.                         )
  832.                     )
  833.  
  834.                     (if (in playflag6 2)
  835.                         (
  836.                             (set libname "apStarTrekker4.library")
  837.                             (InstallLib)
  838.                         )
  839.                     )
  840.  
  841.                     (if (in playflag6 3)
  842.                         (
  843.                             (set libname "apStarTrekker4AM.library")
  844.                             (InstallLib)
  845.                         )
  846.                     )
  847.  
  848.                     (if (in playflag6 4)
  849.                         (
  850.                             (set libname "apSyntracker.library")
  851.                             (InstallLib)
  852.                         )
  853.                     )
  854.  
  855.                     (if (in playflag6 5)
  856.                         (
  857.                             (set libname "apTakeTracker.library")
  858.                             (InstallLib)
  859.                         )
  860.                     )
  861.  
  862.                     (if (in playflag6 6)
  863.                         (
  864.                             (set libname "apTFMX_15.library")
  865.                             (InstallLib)
  866.                         )
  867.                     )
  868.  
  869.                     (if (in playflag6 7)
  870.                         (
  871.                             (set libname "apTHX.library")
  872.                             (InstallLib)
  873.                         )
  874.                     )
  875.                 )
  876.             )
  877.             (complete 19)
  878.  
  879.             (if playflag7
  880.                 (
  881.                     (if (in playflag7 0)
  882.                         (
  883.                             (set libname "apTronicTracker.library")
  884.                             (InstallLib)
  885.                         )
  886.                     )
  887.  
  888.                     (if (in playflag7 1)
  889.                         (
  890.                             (set libname "apWhittaker.library")
  891.                             (InstallLib)
  892.                         )
  893.                     )
  894.                 )
  895.             )
  896.         (DeleteAll)
  897.         )
  898.     )
  899.     (complete 20)
  900.  
  901.  
  902.     (if noteplayflag1
  903.         (
  904.             (makedir "LIBS:APlayer/NotePlayers")
  905.             (working "Unpacking NotePlayer archive....")
  906.             (run ("\"%s\" -fqw=%s x Files/NotePlayers.lha >NIL:" lhex tempdir))
  907.             (set libdest "LIBS:APlayer/NotePlayers")
  908.  
  909.             (if (in noteplayflag1 0)
  910.                 (
  911.                     (set libname "an14BitStereo-2Voices.library")
  912.                     (InstallLib)
  913.                 )
  914.             )
  915.  
  916.             (if (in noteplayflag1 1)
  917.                 (
  918.                     (set libname "an14BitStereo-32Voices.library")
  919.                     (InstallLib)
  920.                 )
  921.             )
  922.  
  923.             (if (in noteplayflag1 2)
  924.                 (
  925.                     (set libname "anFastMem-4Voices.library")
  926.                     (InstallLib)
  927.                 )
  928.             )
  929.  
  930.             (if (in noteplayflag1 3)
  931.                 (
  932.                     (set libname "anMono-32Voices.library")
  933.                     (InstallLib)
  934.                 )
  935.             )
  936.  
  937.             (if (in noteplayflag1 4)
  938.                 (
  939.                     (set libname "anReSurround-32Voices.library")
  940.                     (InstallLib)
  941.                 )
  942.             )
  943.  
  944.             (if (in noteplayflag1 5)
  945.                 (
  946.                     (set libname "anStereo-32Voices.library")
  947.                     (InstallLib)
  948.                 )
  949.             )
  950.  
  951.             (if (in noteplayflag1 6)
  952.                 (
  953.                     (set libname "anSurround-32Voices.library")
  954.                     (InstallLib)
  955.                 )
  956.             )
  957.         (DeleteAll)
  958.         )
  959.     )
  960.     (complete 30)
  961.  
  962.  
  963.     (if agentflag1
  964.         (
  965.             (makedir "LIBS:APlayer/Agents")
  966.             (working "Unpacking Agent archive....")
  967.             (run ("\"%s\" -fqw=%s x Files/Agents.lha >NIL:" lhex tempdir))
  968.             (set libdest "LIBS:APlayer/Agents")
  969.  
  970.             (if (in agentflag1 0)
  971.                 (
  972.                     (set libname "aaFSS.library")
  973.                     (InstallLib)
  974.                 )
  975.             )
  976.  
  977.             (if (in agentflag1 1)
  978.                 (
  979.                     (set libname "aaMulti-SampleSaver.library")
  980.                     (InstallLib)
  981.                 )
  982.             )
  983.  
  984.             (if (in agentflag1 2)
  985.                 (
  986.                     (set libname "aaBar-Scope.library")
  987.                     (InstallLib)
  988.                 )
  989.             )
  990.  
  991.             (if (in agentflag1 3)
  992.                 (
  993.                     (set libname "aaFreqAnalyzer-Scope.library")
  994.                     (InstallLib)
  995.                 )
  996.             )
  997.  
  998.             (if (in agentflag1 4)
  999.                 (
  1000.                     (set libname "aaRGBBox-Scope.library")
  1001.                     (InstallLib)
  1002.                 )
  1003.             )
  1004.  
  1005.             (if (in agentflag1 5)
  1006.                 (
  1007.                     (set libname "aaSpinSquare-Scope.library")
  1008.                     (InstallLib)
  1009.                 )
  1010.             )
  1011.         (DeleteAll)
  1012.         )
  1013.     )
  1014.     (complete 35)
  1015.  
  1016.     (if multiflag1
  1017.         (
  1018.             (makedir "LIBS:APlayer/Agents/MSSModules")
  1019.             (working "Unpacking Multi Modules archive....")
  1020.             (run ("\"%s\" -fqw=%s x Files/MultiMods.lha >NIL:" lhex tempdir))
  1021.             (set libdest "LIBS:APlayer/Agents/MSSModules")
  1022.  
  1023.             (if (in multiflag1 0)
  1024.                 (
  1025.                     (set libname "mmIFF-8SVX.library")
  1026.                     (InstallLib)
  1027.                 )
  1028.             )
  1029.  
  1030.             (if (in multiflag1 1)
  1031.                 (
  1032.                     (set libname "mmIFF-AIFF.library")
  1033.                     (InstallLib)
  1034.                 )
  1035.             )
  1036.  
  1037.             (if (in multiflag1 2)
  1038.                 (
  1039.                     (set libname "mmRaw.library")
  1040.                     (InstallLib)
  1041.                 )
  1042.             )
  1043.  
  1044.             (if (in multiflag1 3)
  1045.                 (
  1046.                     (set libname "mmRIFF-WAVE.library")
  1047.                     (InstallLib)
  1048.                 )
  1049.             )
  1050.  
  1051.             (if (in multiflag1 4)
  1052.                 (
  1053.                     (set libname "mmWorms.library")
  1054.                     (InstallLib)
  1055.                 )
  1056.             )
  1057.         (DeleteAll)
  1058.         )
  1059.     )
  1060.     (complete 40)
  1061.  
  1062.  
  1063.     (if libs
  1064.         (
  1065.             (working "Unpacking library archive....")
  1066.             (run ("\"%s\" -fqw=%s x Files/Libraries.lha >NIL:" lhex tempdir))
  1067.             (set libdest "LIBS:")
  1068.  
  1069.             (if (in libs 0)
  1070.                 (
  1071.                     (set libname "playsid.library")
  1072.                     (InstallLib)
  1073.                 )
  1074.             )
  1075.  
  1076.             (if (in libs 1)
  1077.                 (
  1078.                     (set libname "reqtools.library")
  1079.                     (InstallLib)
  1080.                 )
  1081.             )
  1082.  
  1083.             (if (in libs 2)
  1084.                 (
  1085.                     (set libname "rexxtools.library")
  1086.                     (InstallLib)
  1087.                 )
  1088.             )
  1089.  
  1090.             (if (in libs 3)
  1091.                 (
  1092.                     (set libname "xpkmaster.library")
  1093.                     (InstallLib)
  1094.                 )
  1095.             )
  1096.  
  1097.             (if (in libs 4)
  1098.                 (
  1099.                     (set libname "unpack.library")
  1100.                     (InstallLib)
  1101.                 )
  1102.             )
  1103.         (DeleteAll)
  1104.         )
  1105.     )
  1106.     (complete 50)
  1107.  
  1108.  
  1109.     (if xpk
  1110.         (
  1111.             (makedir "LIBS:compressors")
  1112.             (working "Unpacking XPK-Subs archive....")
  1113.             (run ("\"%s\" -fqw=%s x Files/XPKSubs.lha >NIL:" lhex tempdir))
  1114.             (set libdest "LIBS:compressors/")
  1115.  
  1116.             (if (in xpk 0)
  1117.                 (
  1118.                     (set libname "xpkSMPL.library")
  1119.                     (InstallLib)
  1120.                 )
  1121.             )
  1122.  
  1123.             (if (in xpk 1)
  1124.                 (
  1125.                     (working ("Testing compressors/xpkSQSH.library"))
  1126.                     (copylib
  1127.                         (prompt ("Do you want to install the \"compressors/xpkSQSH.library\"?"))
  1128.                         (help @copylib-help)
  1129.                         (source (tackon tempdir "xpkSQSH000.library"))
  1130.                         (dest libdest)
  1131.                         (newname "xpkSQSH.library")
  1132.                         (confirm)
  1133.                     )
  1134.                 )
  1135.             )
  1136.  
  1137.             (if (in xpk 2)
  1138.                 (
  1139.                     (working ("Testing compressors/xpkSQSH.library"))
  1140.                     (copylib
  1141.                         (prompt ("Do you want to install the \"compressors/xpkSQSH.library\"?"))
  1142.                         (help @copylib-help)
  1143.                         (source (tackon tempdir "xpkSQSH020.library"))
  1144.                         (dest libdest)
  1145.                         (newname "xpkSQSH.library")
  1146.                         (confirm)
  1147.                     )
  1148.                 )
  1149.             )
  1150.         (DeleteAll)
  1151.         )
  1152.     )
  1153.     (complete 60)
  1154.  
  1155.  
  1156.     (if arexx
  1157.         (
  1158.             (set arexxdir (tackon @default-dest "ARexx"))
  1159.             (makedir arexxdir)
  1160.             (working "Unpacking ARexx archive....")
  1161.             (run ("\"%s\" -fqw=%s x Files/ARexx.lha >NIL:" lhex arexxdir))
  1162.         )
  1163.     )
  1164.     (complete 70)
  1165.  
  1166.  
  1167.     (if doc
  1168.         (
  1169.             (set docdir (tackon @default-dest "Docs"))
  1170.             (makedir (tackon @default-dest "Docs") (infos))
  1171.             (working "Unpacking Docs archive....")
  1172.             (run ("\"%s\" -fqw=%s x Files/Docs.lha >NIL:" lhex tempdir))
  1173.  
  1174.             (if (in docflag 0)
  1175.                 (
  1176.                     (copyfiles
  1177.                         (source (tackon tempdir "APlayer.guide"))
  1178.                         (dest docdir)
  1179.                         (infos)
  1180.                     )
  1181.                 )
  1182.             )
  1183.  
  1184.             (if (in docflag 1)
  1185.                 (
  1186.                     (copyfiles
  1187.                         (source (tackon tempdir "MissingModules.txt"))
  1188.                         (dest docdir)
  1189.                         (infos)
  1190.                     )
  1191.                 )
  1192.             )
  1193.  
  1194.             (if (in docflag 2)
  1195.                 (
  1196.                     (copyfiles
  1197.                         (source (tackon tempdir "PlaySid.doc"))
  1198.                         (dest docdir)
  1199.                         (infos)
  1200.                     )
  1201.                 )
  1202.             )
  1203.  
  1204.             (if (in docflag 3)
  1205.                 (
  1206.                     (copyfiles
  1207.                         (source (tackon tempdir "SMPL.doc"))
  1208.                         (dest docdir)
  1209.                         (infos)
  1210.                     )
  1211.                 )
  1212.             )
  1213.  
  1214.             (if (in docflag 4)
  1215.                 (
  1216.                     (copyfiles
  1217.                         (source (tackon tempdir "SQSH.doc"))
  1218.                         (dest docdir)
  1219.                         (infos)
  1220.                     )
  1221.                 )
  1222.             )
  1223.  
  1224.             (if (in docflag 5)
  1225.                 (
  1226.                     (delete (tackon docdir "Unpack.doc"))
  1227.                     (delete (tackon docdir "Unpack.doc.info"))
  1228.                     (copyfiles
  1229.                         (source (tackon tempdir "Unpacker.guide"))
  1230.                         (dest docdir)
  1231.                         (infos)
  1232.                     )
  1233.                 )
  1234.             )
  1235.  
  1236.             (if (in docflag 6)
  1237.                 (
  1238.                     (copyfiles
  1239.                         (source (tackon tempdir "RegistrationForm"))
  1240.                         (dest docdir)
  1241.                         (infos)
  1242.                     )
  1243.                 )
  1244.             )
  1245.  
  1246.             (if (in docflag 7)
  1247.                 (
  1248.                     (copyfiles
  1249.                         (source (tackon sdir "HDInstall"))
  1250.                         (dest @default-dest)
  1251.                         (infos)
  1252.                     )
  1253.                 )
  1254.             )
  1255.         (delete (tackon docdir "Bonus.doc"))
  1256.         (delete (tackon docdir "Bonus.doc.info"))
  1257.         (DeleteAll)
  1258.         )
  1259.     )
  1260.     (complete 80)
  1261.  
  1262.  
  1263. ;    (if developer
  1264. ;        (
  1265. ;            (set devdir (tackon @default-dest "Developer"))
  1266. ;            (makedir devdir)
  1267. ;            (working "Unpacking Developer archive....")
  1268. ;            (run ("\"%s\" -fqw=%s x Files/Developer.lha >NIL:" lhex devdir))
  1269. ;        )
  1270. ;    )
  1271.     (complete 90)
  1272.  
  1273. ; Delete Bonus Files
  1274.  
  1275.     (set deldir (tackon @default-dest "Bonus"))
  1276.     (DeleteAll)
  1277.  
  1278. ; Check for obsolete players
  1279.  
  1280.     (set obplay "")
  1281. ;    (if (exists "LIBS:APlayer/apTFMX_7V.library")
  1282. ;        (
  1283. ;            (set obplay "TFMX_7V\n")
  1284. ;            (delete "LIBS:APlayer/apTFMX_7V.library")
  1285. ;        )
  1286. ;    )
  1287.  
  1288. ;    (if (exists "LIBS:APlayer/apTFMX_Pro.library")
  1289. ;        (
  1290. ;            (set obplay (cat obplay "TFMX_Pro\n"))
  1291. ;            (delete "LIBS:APlayer/apTFMX_Pro.library")
  1292. ;        )
  1293. ;    )
  1294.  
  1295.     (if (not (= obplay ""))
  1296.         (message "Below is a list of some players which are obsolete. "
  1297.                  "They are deleted from your LIBS:APlayer/ drawer. "
  1298.                  "Be sure to delete them from your player config.\n\n"
  1299.                  obplay)
  1300.     )
  1301.  
  1302.  
  1303. ; Fix the configuration files
  1304.  
  1305.     (makedir "ENVARC:APlayer")
  1306.     (makedir "ENVARC:APlayer/Players")
  1307.     (makedir "ENVARC:APlayer/NotePlayers")
  1308.  
  1309.     ; From a very early version, the config where in the "root".
  1310.  
  1311.     (delete "ENVARC:APlayer/IFF-8SVX.cfg")
  1312.     (delete "ENVARC:APlayer/IFF-AIFF.cfg")
  1313.     (delete "ENVARC:APlayer/Protracker.cfg")
  1314.     (delete "ENVARC:APlayer/Players/Protracker.cfg")
  1315.  
  1316.  
  1317.     ; From Version 2, we have changed the config data, so we have
  1318.     ; to delete old config files.
  1319.  
  1320.     (if (< oldversion 2)
  1321.         (
  1322.             (delete "ENVARC:APlayer/Players/IFF-8SVX.cfg")
  1323.             (delete "ENVARC:APlayer/Players/IFF-AIFF.cfg")
  1324.             (delete "ENVARC:APlayer/Players/RIFF-WAVE.cfg")
  1325.         )
  1326.     )
  1327.  
  1328.  
  1329.     ; Delete files that are obsolete.
  1330.  
  1331.     (delete "ENVARC:APlayer/NotePlayers/FastMem4.cfg")
  1332.  
  1333.  
  1334.     ; Copy default player config file.
  1335.  
  1336.     (if big
  1337.         (
  1338.             (if (not (exists "ENVARC:APlayer/APlayer.libs"))
  1339.                 (
  1340.                     (copyfiles
  1341.                         (source "Files/!APlayer.libs")
  1342.                         (dest "ENVARC:APlayer/")
  1343.                     )
  1344.                     (rename "ENVARC:APlayer/!APlayer.libs" "ENVARC:APlayer/APlayer.libs")
  1345.                 )
  1346.             )
  1347.         )
  1348.     )
  1349.  
  1350.  
  1351.     ; Do we have to convert the config file?
  1352.  
  1353.     (if (< oldversion 2)
  1354.         (
  1355.             (if (exists "ENVARC:APlayer/APlayer.prefs")
  1356.                 (
  1357.                     (if (askbool
  1358.                             (prompt "Do you want to convert your old preference"
  1359.                                     "file to the new format?")
  1360.                             (help "From this version of APlayer, the file format"
  1361.                                   " of the preference file is changed. Therefore"
  1362.                                   " you have to convert your preference file to"
  1363.                                   " the new format if you want to use your old"
  1364.                                   " settings.")
  1365.                         )
  1366.                         (
  1367.                             (run ("\"%s\" >ENV:convtxt" (tackon sdir "C/PrefsConvert")))
  1368.  
  1369.                             (if (not (exists "ENVARC:APlayer/APlayer2.0.prefs"))
  1370.                                 (
  1371.                                     (message "Something went wrong when converting!!!\n\n"
  1372.                                              ("%s" (getenv "convtxt")))
  1373.                                 )
  1374.                                 (
  1375.                                     (if (askbool
  1376.                                             (prompt "You now have a new preference file."
  1377.                                                     " Do you want to delete your"
  1378.                                                     " old preference files and rename the new "
  1379.                                                     "one?")
  1380.                                             (help @askbool-help)
  1381.                                         )
  1382.                                         (
  1383.                                             (delete "ENVARC:APlayer/APlayer.prefs")
  1384.                                             (delete "ENVARC:APlayer/APlayer.win")
  1385.                                             (delete "ENVARC:APlayer/APlayer.arexx")
  1386.                                             (rename "ENVARC:APlayer/APlayer2.0.prefs" "ENVARC:APlayer/APlayer.prefs")
  1387.                                             (rename "ENVARC:APlayer/APlayer2.0.win" "ENVARC:APlayer/APlayer.win")
  1388.                                         )
  1389.                                     )
  1390.                                 )
  1391.                             )
  1392.                         )
  1393.                     )
  1394.                     (delete "ENV:convtxt")
  1395.                 )
  1396.             )
  1397.         )
  1398.     )
  1399.     (complete 100)
  1400.     (delete deldir)
  1401.  
  1402.     (message "You have to reset your computer before using APlayer.")
  1403. )
  1404.  
  1405. ;--------------------------------------------------------------------------
  1406. ; ** Remove Procedure
  1407.  
  1408. (procedure Remove
  1409.     (if (askbool
  1410.             (prompt "This procedure will remove all files associated to "
  1411.                     "the APlayer program. This means the program, docs, "
  1412.                     "preference files and all extern players.\n\n"
  1413.                     "Are you sure you want to continue?")
  1414.             (help @askbool-help)
  1415.         )
  1416.  
  1417.         (
  1418.             (set @default-dest
  1419.                 (askdir
  1420.                     (prompt "Select where the \"APlayer\" drawer are "
  1421.                             "stored.")
  1422.                     (help @askdir-help)
  1423.                     (default @default-dest)
  1424.                 )
  1425.             )
  1426.  
  1427.             (working "Deleting the \"APlayer\" drawer...")
  1428.             (set ddir (tackon @default-dest "APlayer"))
  1429.  
  1430.             (set deldir (tackon ddir "Data"))
  1431.             (DeleteAll)
  1432.  
  1433.             (set deldir (tackon ddir "ARexx/IR_Scripts"))
  1434.             (DeleteAll)
  1435.             (set deldir (tackon ddir "ARexx"))
  1436.             (DeleteAll)
  1437.  
  1438.             (set deldir (tackon ddir "Bonus"))
  1439.             (DeleteAll)
  1440.  
  1441.             (set deldir (tackon ddir "Docs"))
  1442.             (DeleteAll)
  1443.  
  1444.             (set deldir (tackon ddir "Developer/Examples"))
  1445.             (DeleteAll)
  1446.             (set deldir (tackon ddir "Developer/Include3.0/Own"))
  1447.             (DeleteAll)
  1448.             (set deldir (tackon ddir "Developer/Include3.0"))
  1449.             (DeleteAll)
  1450.             (set deldir (tackon ddir "Developer/Rexxtools/Doc"))
  1451.             (DeleteAll)
  1452.             (set deldir (tackon ddir "Developer/Rexxtools/FD"))
  1453.             (DeleteAll)
  1454.             (set deldir (tackon ddir "Developer/Rexxtools/Include/CLib"))
  1455.             (DeleteAll)
  1456.             (set deldir (tackon ddir "Developer/Rexxtools/Include/Libraries"))
  1457.             (DeleteAll)
  1458.             (set deldir (tackon ddir "Developer/Rexxtools/Include/Pragmas"))
  1459.             (DeleteAll)
  1460.             (set deldir (tackon ddir "Developer/Rexxtools/Include/Proto"))
  1461.             (DeleteAll)
  1462.             (set deldir (tackon ddir "Developer/Rexxtools/Include"))
  1463.             (DeleteAll)
  1464.             (set deldir (tackon ddir "Developer/Rexxtools/Libs"))
  1465.             (DeleteAll)
  1466.             (set deldir (tackon ddir "Developer/Rexxtools"))
  1467.             (DeleteAll)
  1468.             (set deldir (tackon ddir "Developer"))
  1469.             (DeleteAll)
  1470.  
  1471.             (set deldir ddir)
  1472.             (DeleteAll)
  1473.  
  1474.             (delete ddir)
  1475.             (delete (tackon @default-dest "APlayer.info"))
  1476.  
  1477.             (delete "S:APlayer.FSS")
  1478.             (complete 20)
  1479.  
  1480.  
  1481.             (working "Deleting preference files...")
  1482.             (set ddir "ENVARC:APlayer")
  1483.             (set deldir (tackon ddir "Players"))
  1484.             (DeleteAll)
  1485.             (set deldir (tackon ddir "NotePlayers"))
  1486.             (DeleteAll)
  1487.             (set deldir (tackon ddir "Agents"))
  1488.             (DeleteAll)
  1489.             (set deldir ddir)
  1490.             (DeleteAll)
  1491.             (delete "ENVARC:APlayer")
  1492.             (complete 40)
  1493.  
  1494.             (working "Deleting external Agents...")
  1495.             (set deldir "LIBS:APlayer/Agents/MSSModules")
  1496.             (DeleteAll)
  1497.             (set deldir "LIBS:APlayer/Agents")
  1498.             (DeleteAll)
  1499.             (delete "LIBS:APlayer/Agents")
  1500.             (complete 60)
  1501.  
  1502.             (working "Deleting external NotePlayers...")
  1503.             (set deldir "LIBS:APlayer/NotePlayers")
  1504.             (DeleteAll)
  1505.             (delete "LIBS:APlayer/NotePlayers")
  1506.             (complete 80)
  1507.  
  1508.             (working "Deleting external players...")
  1509.             (set deldir "LIBS:APlayer")
  1510.             (DeleteAll)
  1511.             (delete "LIBS:APlayer")
  1512.             (complete 100)
  1513.         )
  1514.     )
  1515. )
  1516.  
  1517. ;--------------------------------------------------------------------------
  1518. ; ** Main Stript
  1519.  
  1520. (complete 0)
  1521. (set sdir (pathonly @icon))
  1522.  
  1523. (if (< (/ (getversion) 65536) 37)
  1524.     (abort "You must have Kickstart 2.0 or greater to use this installation"
  1525.            " utility and to run \"Accessible Player\".")
  1526. )
  1527.  
  1528. (message "This installer script will help you to install/remove "
  1529.          "\"Accessible Player\" to/from your hard disk.\n"
  1530.          "If you don't own one, abort immediately.")
  1531.  
  1532. (run ("run \"%s\" \"%s\"" (tackon sdir "C/More") (tackon sdir "Readme.first")))
  1533. (welcome)
  1534.  
  1535. ; ** Ask to Install Or Remove
  1536.  
  1537. (set askflag (askbool
  1538.                 (prompt "Do you want to install or remove "
  1539.                         "\"Accessible Player\"?")
  1540.                 (help "")
  1541.                 (choices "Install" "Remove")
  1542.              )
  1543. )
  1544.  
  1545. (if askflag
  1546.     (Install)                       ;Start Install Procedure
  1547.     (Remove)                        ;Start Remove Procedure
  1548. )
  1549.